package com.cd.javacxy.module.web.dao;

import com.cd.javacxy.common.model.entity.CxyKnowledge;
import com.cd.javacxy.common.model.enums.StatusEnum;
import com.cd.javacxy.common.model.query.KnowledgeQuery;
import com.cd.javacxy.common.model.query.UpdateQuery4ArticleCount;

import java.util.List;

/**
 * CxyKnowledge的Dao接口
 *
 * @author y
 */
public interface CxyKnowledgeDao {

    int selectCount(KnowledgeQuery knowledgeQuery);

    List<CxyKnowledge> selectList(KnowledgeQuery knowledgeQuery);

    int updateInfoCount(UpdateQuery4ArticleCount updateQuery4ArticleCount);

    int insert(CxyKnowledge knowledge);

    int delete(int id);

    int updateKnowledgeStatus(StatusEnum audit, Integer[] ids);
}